package org.bsc.mgwt.client.widget;


import org.bsc.mgwt.client.widget.base.MLabeledWidget;

import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.event.dom.client.HasChangeHandlers;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.ListBox;
import com.googlecode.mgwt.ui.client.theme.base.InputCss;

/**
 * 
 * @author bsorrentino
 *
 */
public class MLabeledListBox extends MLabeledWidget<ListBox, InputCss> implements HasChangeHandlers {

	@Override
	protected ListBox initWidget(InputCss css) {
		final ListBox box = new ListBox();
		
		if( css!=null ) {
			box.setStylePrimaryName(css.listBox());
		}
		return box;
	}
	@Override
	public HandlerRegistration addChangeHandler(ChangeHandler handler) {
		return wrapped.addChangeHandler(handler);
	}


}
